projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42b515a
)
ngl: Remove a few redundant checks
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 7 Mar 2021 15:16:56 +0000
(10:16 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 7 Mar 2021 15:18:47 +0000
(10:18 -0500)
We bail early on invisible nodes. No need to
repeat that check in individual visit functions.
gsk/ngl/gsknglrenderjob.c
patch
|
blob
|
history
diff --git
a/gsk/ngl/gsknglrenderjob.c
b/gsk/ngl/gsknglrenderjob.c
index b8f983f862ffec312c4c84123db43381b57b743e..21bd4ebfa09caf165b6095bcae4ef3e056bcaeb0 100644
(file)
--- a/
gsk/ngl/gsknglrenderjob.c
+++ b/
gsk/ngl/gsknglrenderjob.c
@@
-2805,9
+2805,6
@@
gsk_ngl_render_job_visit_blur_node (GskNglRenderJob *job,
g_assert (blur_radius > 0);
- if (node_is_invisible (child))
- return;
-
key.pointer = node;
key.pointer_is_child = FALSE;
key.scale_x = job->scale_x;
@@
-2906,9
+2903,6
@@
gsk_ngl_render_job_visit_color_matrix_node (GskNglRenderJob *job,
GskNglRenderOffscreen offscreen = {0};
float offset[4];
- if (node_is_invisible (child))
- return;
-
offscreen.bounds = &node->bounds;
offscreen.reset_clip = TRUE;